<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>话题列表 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    
    <style>
        /* 基础样式 */
        body {
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }
        
        /* 导航栏样式 */
        .navbar {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.75rem 0;
        }
        
        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            color: #2563eb;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .logo i {
            font-size: 1.75rem;
        }
        
        .nav-link {
            color: #64748b;
            font-weight: 500;
            margin: 0 0.5rem;
            transition: all 0.2s ease;
            padding: 0.5rem 0.75rem;
        }
        
        .nav-link:hover, .nav-link.active {
            color: #2563eb;
        }
        
        .search-bar {
            max-width: 300px;
            width: 100%;
            position: relative;
        }
        
        .search-bar input {
            padding-left: 2.5rem;
            background-color: #f1f5f9;
            border-color: #e2e8f0;
        }
        
        .search-bar i {
            position: absolute;
            left: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            color: #94a3b8;
        }
        
        .user-actions {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .user-avatar {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            object-fit: cover;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.2s ease;
        }
        
        .user-avatar:hover {
            border-color: #2563eb;
        }
        
        .create-btn {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.5rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-weight: 500;
            transition: all 0.2s ease;
        }
        
        .create-btn:hover {
            background-color: #1d4ed8;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }
        
        /* 主内容区 */
        .main-container {
            padding: 2rem 0;
        }
        
        /* 页面标题 */
        .page-header {
            margin-bottom: 2rem;
        }
        
        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: #1e293b;
            margin-bottom: 0.5rem;
        }
        
        .page-description {
            color: #64748b;
            font-size: 1.1rem;
        }
        
        /* 筛选区域 */
        .filters-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .filter-section {
            margin-bottom: 1.5rem;
        }
        
        .filter-section:last-child {
            margin-bottom: 0;
        }
        
        .filter-title {
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.75rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .filter-title i {
            color: #2563eb;
        }
        
        .filter-options {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .filter-checkbox-group {
            display: flex;
            flex-wrap: wrap;
            gap: 1.5rem;
        }
        
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: #64748b;
        }
        
        .filter-checkbox {
            accent-color: #2563eb;
            width: 1rem;
            height: 1rem;
        }
        
        .filter-tag {
            padding: 0.4rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: 1px solid #e2e8f0;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .filter-tag.active {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }
        
        .filter-tag:not(.active) {
            background-color: white;
            color: #64748b;
        }
        
        .filter-tag:not(.active):hover {
            background-color: #f1f5f9;
            color: #334155;
        }
        
        .filter-select {
            width: 100%;
            max-width: 200px;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background-color: white;
            color: #334155;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.75rem center;
        }
        
        .date-range {
            display: flex;
            gap: 1rem;
            width: 100%;
            max-width: 400px;
        }
        
        .date-input {
            flex: 1;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            color: #334155;
        }
        
        .advanced-toggle {
            background: none;
            border: none;
            color: #2563eb;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.25rem 0;
        }
        
        .advanced-filters {
            margin-top: 1rem;
            padding-top: 1rem;
            border-top: 1px dashed #e2e8f0;
            display: none;
        }
        
        .advanced-filters.show {
            display: block;
        }
        
        .filter-actions {
            display: flex;
            justify-content: flex-end;
            gap: 1rem;
            margin-top: 1.5rem;
            padding-top: 1rem;
            border-top: 1px dashed #e2e8f0;
        }
        
        .reset-btn {
            background-color: #f1f5f9;
            color: #64748b;
            border: none;
            border-radius: 6px;
            padding: 0.6rem 1.25rem;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .reset-btn:hover {
            background-color: #e2e8f0;
            color: #475569;
        }
        
        .apply-btn {
            background-color: #2563eb;
            color: white;
            border: none;
            border-radius: 6px;
            padding: 0.6rem 1.25rem;
            font-weight: 500;
            transition: all 0.2s ease;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        
        .apply-btn:hover {
            background-color: #1d4ed8;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
        }
        
        /* 结果信息 */
        .results-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 1rem;
        }
        
        .results-count {
            color: #64748b;
            font-size: 0.95rem;
        }
        
        .results-count strong {
            color: #1e293b;
        }
        
        .active-filters {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
        }
        
        .active-filter-tag {
            background-color: #eff6ff;
            color: #2563eb;
            padding: 0.35rem 0.75rem;
            border-radius: 20px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .remove-filter {
            background: none;
            border: none;
            color: #2563eb;
            cursor: pointer;
            width: 16px;
            height: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }
        
        .remove-filter:hover {
            background-color: rgba(37, 99, 235, 0.1);
        }
        
        /* 布局切换器 */
        .view-options {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .view-label {
            color: #64748b;
            font-size: 0.95rem;
        }
        
        .layout-switcher {
            display: flex;
            gap: 0.5rem;
        }
        
        .layout-btn {
            background-color: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            padding: 0.5rem;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .layout-btn.active {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }
        
        .layout-btn:hover:not(.active) {
            background-color: #f1f5f9;
        }
        
        /* 话题卡片通用样式 */
        .topic-card {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            transition: all 0.3s ease;
        }
        
        .topic-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        }
        
        .topic-content {
            padding: 1.25rem;
        }
        
        .topic-title {
            font-size: 1.15rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 0.75rem;
            transition: color 0.2s ease;
            text-decoration: none;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .topic-title:hover {
            color: #2563eb;
        }
        
        .topic-excerpt {
            color: #64748b;
            font-size: 0.95rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .topic-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: #94a3b8;
        }
        
        .topic-author {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        
        .author-avatar {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .author-name {
            color: #64748b;
            font-weight: 500;
        }
        
        .topic-stats {
            display: flex;
            gap: 1rem;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }
        
        .topic-actions {
            display: flex;
            gap: 0.75rem;
        }
        
        .action-btn {
            background: none;
            border: none;
            color: #94a3b8;
            cursor: pointer;
            transition: color 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            font-size: 0.85rem;
        }
        
        .action-btn:hover {
            color: #2563eb;
        }
        
        .action-btn.liked {
            color: #2563eb;
        }
        
        .action-btn.bookmarked {
            color: #eab308;
        }
        
        /* 带单张图片的话题卡片 */
        .topic-card-single-image .topic-image {
            height: 180px;
            overflow: hidden;
        }
        
        .topic-card-single-image .topic-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .topic-card-single-image:hover .topic-image img {
            transform: scale(1.05);
        }
        
        /* 带多张图片的话题卡片 */
        .topic-card-multiple-images .topic-images {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            height: 180px;
        }
        
        .topic-card-multiple-images .topic-image {
            overflow: hidden;
            position: relative;
        }
        
        .topic-card-multiple-images .topic-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .topic-card-multiple-images:hover .topic-image img {
            transform: scale(1.05);
        }
        
        .topic-card-multiple-images .topic-image:nth-child(1) {
            grid-column: span 2;
            grid-row: span 2;
        }
        
        .image-count-overlay {
            position: absolute;
            bottom: 0;
            right: 0;
            background-color: rgba(0, 0, 0, 0.6);
            color: white;
            font-size: 0.8rem;
            padding: 0.25rem 0.5rem;
            border-radius: 4px 0 0 0;
        }
        
        /* 无图片的话题卡片 */
        .topic-card-no-image {
            border-left: 4px solid #2563eb;
        }
        
        /* 网格布局 */
        .grid-layout {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }
        
        /* 列表布局 */
        .list-layout {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .list-layout .topic-card {
            display: flex;
        }
        
        .list-layout .topic-image {
            width: 180px;
            flex-shrink: 0;
            height: 100%;
        }
        
        .list-layout .topic-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .list-layout .topic-card-no-image .topic-content {
            flex: 1;
        }
        
        .list-layout .topic-card-multiple-images .topic-images {
            width: 180px;
            flex-shrink: 0;
            height: 100%;
        }
        
        /* 紧凑列表布局 */
        .compact-layout {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        
        .compact-layout .topic-card {
            padding: 1rem;
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .compact-layout .topic-image {
            width: 80px;
            height: 80px;
            border-radius: 6px;
            overflow: hidden;
            flex-shrink: 0;
        }
        
        .compact-layout .topic-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .compact-layout .topic-card-no-image .topic-image {
            display: none;
        }
        
        .compact-layout .topic-content {
            flex: 1;
            padding: 0;
        }
        
        .compact-layout .topic-excerpt {
            display: none;
        }
        
        .compact-layout .topic-meta {
            flex: 0 0 auto;
            white-space: nowrap;
        }
        
        /* 分页 */
        .pagination-container {
            margin-top: 2rem;
            display: flex;
            justify-content: center;
        }
        
        .pagination {
            display: flex;
            gap: 0.5rem;
        }
        
        .page-btn {
            width: 36px;
            height: 36px;
            border-radius: 6px;
            border: 1px solid #e2e8f0;
            background-color: white;
            color: #64748b;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        
        .page-btn:hover:not(.active):not(.disabled) {
            background-color: #f1f5f9;
            color: #2563eb;
        }
        
        .page-btn.active {
            background-color: #2563eb;
            color: white;
            border-color: #2563eb;
        }
        
        .page-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        /* 响应式调整 */
        @media (max-width: 992px) {
            .search-bar {
                max-width: 200px;
            }
            
            .list-layout .topic-image,
            .list-layout .topic-card-multiple-images .topic-images {
                width: 140px;
            }
        }
        
        @media (max-width: 768px) {
            .navbar-nav {
                margin-top: 1rem;
            }
            
            .search-bar {
                max-width: 100%;
                margin: 1rem 0;
            }
            
            .user-actions {
                margin-top: 1rem;
            }
            
            .page-title {
                font-size: 1.75rem;
            }
            
            .list-layout .topic-card {
                flex-direction: column;
            }
            
            .list-layout .topic-image,
            .list-layout .topic-card-multiple-images .topic-images {
                width: 100%;
                height: 160px;
            }
            
            .filter-select, .date-range {
                max-width: 100%;
                width: 100%;
            }
            
            .results-info {
                flex-direction: column;
                align-items: flex-start;
            }
        }
        
        @media (max-width: 576px) {
            .filter-options {
                gap: 0.5rem;
            }
            
            .filter-tag {
                padding: 0.35rem 0.75rem;
                font-size: 0.85rem;
            }
            
            .topic-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 0.5rem;
            }
            
            .topic-actions {
                width: 100%;
                justify-content: space-between;
                padding-top: 0.5rem;
                border-top: 1px solid #f1f5f9;
            }
            
            .compact-layout .topic-meta {
                display: none;
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg">
        <div class="container">
            <a href="#" class="logo">
                <i class="fas fa-comments"></i>
                <span>社交圈</span>
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <i class="fas fa-bars"></i>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav me-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-home me-1"></i> 首页</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link active" href="#"><i class="fas fa-fire me-1"></i> 话题</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-comments me-1"></i> 讨论</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-newspaper me-1"></i> 文章</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-image me-1"></i> 相册</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="#"><i class="fas fa-question-circle me-1"></i> 问答</a>
                    </li>
                </ul>
                
                <div class="d-flex align-items-center gap-3 flex-wrap">
                    <div class="search-bar">
                        <i class="fas fa-search"></i>
                        <input type="text" class="form-control" placeholder="搜索话题...">
                    </div>
                    
                    <div class="user-actions">
                        <button class="create-btn">
                            <i class="fas fa-plus"></i>
                            <span>发布</span>
                        </button>
                        <img src="https://picsum.photos/id/1005/38/38" alt="用户头像" class="user-avatar">
                    </div>
                </div>
            </div>
        </div>
    </nav>
    
    <!-- 主内容区 -->
    <div class="main-container">
        <div class="container">
            <!-- 页面标题 -->
            <div class="page-header">
                <h1 class="page-title">话题列表</h1>
                <p class="page-description">发现并参与感兴趣的话题讨论</p>
            </div>
            
            <!-- 筛选区域 -->
            <div class="filters-container">
                <div class="row">
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title"><i class="fas fa-th-large"></i> 话题分类</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部</div>
                            <div class="filter-tag">科技</div>
                            <div class="filter-tag">美食</div>
                            <div class="filter-tag">旅行</div>
                            <div class="filter-tag">电影</div>
                            <div class="filter-tag">音乐</div>
                            <div class="filter-tag">体育</div>
                            <div class="filter-tag">游戏</div>
                            <div class="filter-tag">摄影</div>
                            <div class="filter-tag">读书</div>
                            <div class="filter-tag">职场</div>
                        </div>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title"><i class="fas fa-sort"></i> 排序方式</h3>
                        <select class="filter-select">
                            <option value="recommend">推荐排序</option>
                            <option value="latest">最新发布</option>
                            <option value="hot">热门话题</option>
                            <option value="commented">评论最多</option>
                            <option value="viewed">浏览最多</option>
                        </select>
                    </div>
                    
                    <div class="col-md-4 filter-section">
                        <h3 class="filter-title"><i class="fas fa-calendar"></i> 发布时间</h3>
                        <div class="filter-options">
                            <div class="filter-tag active">全部时间</div>
                            <div class="filter-tag">今天</div>
                            <div class="filter-tag">本周</div>
                            <div class="filter-tag">本月</div>
                            <div class="filter-tag">今年</div>
                        </div>
                    </div>
                </div>
                
                <button class="advanced-toggle" id="advancedToggle">
                    <span>高级筛选</span>
                    <i class="fas fa-chevron-down"></i>
                </button>
                
                <div class="advanced-filters" id="advancedFilters">
                    <div class="row">
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-user"></i> 作者类型</h3>
                            <div class="filter-checkbox-group">
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>普通用户</span>
                                </label>
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>认证用户</span>
                                </label>
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>官方账号</span>
                                </label>
                            </div>
                        </div>
                        
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-image"></i> 内容类型</h3>
                            <div class="filter-checkbox-group">
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>纯文字</span>
                                </label>
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>含图片</span>
                                </label>
                                <label class="checkbox-item">
                                    <input type="checkbox" class="filter-checkbox" checked>
                                    <span>含视频</span>
                                </label>
                            </div>
                        </div>
                        
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-calendar-alt"></i> 自定义时间</h3>
                            <div class="date-range">
                                <input type="date" class="date-input" placeholder="开始日期">
                                <input type="date" class="date-input" placeholder="结束日期">
                            </div>
                        </div>
                    </div>
                    
                    <div class="row">
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-eye"></i> 浏览量范围</h3>
                            <div class="filter-options">
                                <div class="filter-tag">不限</div>
                                <div class="filter-tag active">1000+</div>
                                <div class="filter-tag">5000+</div>
                                <div class="filter-tag">10000+</div>
                                <div class="filter-tag">50000+</div>
                            </div>
                        </div>
                        
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-comment"></i> 评论量范围</h3>
                            <div class="filter-options">
                                <div class="filter-tag">不限</div>
                                <div class="filter-tag">10+</div>
                                <div class="filter-tag active">50+</div>
                                <div class="filter-tag">100+</div>
                                <div class="filter-tag">500+</div>
                            </div>
                        </div>
                        
                        <div class="col-md-4 filter-section">
                            <h3 class="filter-title"><i class="fas fa-heart"></i> 点赞量范围</h3>
                            <div class="filter-options">
                                <div class="filter-tag">不限</div>
                                <div class="filter-tag">50+</div>
                                <div class="filter-tag">100+</div>
                                <div class="filter-tag active">500+</div>
                                <div class="filter-tag">1000+</div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="filter-actions">
                    <button class="reset-btn">
                        <i class="fas fa-redo"></i>
                        <span>重置筛选</span>
                    </button>
                    <button class="apply-btn">
                        <i class="fas fa-filter"></i>
                        <span>应用筛选</span>
                    </button>
                </div>
            </div>
            
            <!-- 结果信息 -->
            <div class="results-info">
                <div class="results-count">
                    找到 <strong>248</strong> 个符合条件的话题
                </div>
                
                <div class="active-filters">
                    <div class="active-filter-tag">
                        <span>话题分类: 全部</span>
                        <button class="remove-filter"><i class="fas fa-times"></i></button>
                    </div>
                    <div class="active-filter-tag">
                        <span>发布时间: 全部时间</span>
                        <button class="remove-filter"><i class="fas fa-times"></i></button>
                    </div>
                    <div class="active-filter-tag">
                        <span>浏览量: 1000+</span>
                        <button class="remove-filter"><i class="fas fa-times"></i></button>
                    </div>
                    <div class="active-filter-tag">
                        <span>评论量: 50+</span>
                        <button class="remove-filter"><i class="fas fa-times"></i></button>
                    </div>
                    <div class="active-filter-tag">
                        <span>点赞量: 500+</span>
                        <button class="remove-filter"><i class="fas fa-times"></i></button>
                    </div>
                </div>
                
                <div class="view-options">
                    <span class="view-label">视图:</span>
                    <div class="layout-switcher">
                        <button class="layout-btn active" id="gridLayoutBtn" title="网格布局">
                            <i class="fas fa-th"></i>
                        </button>
                        <button class="layout-btn" id="listLayoutBtn" title="列表布局">
                            <i class="fas fa-list"></i>
                        </button>
                        <button class="layout-btn" id="compactLayoutBtn" title="紧凑布局">
                            <i class="fas fa-list-ul"></i>
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 话题内容区 - 默认网格布局 -->
            <div class="topics-container grid-layout" id="topicsContainer">
                <!-- 带单张图片的话题卡片 -->
                <article class="topic-card topic-card-single-image">
                    <div class="topic-image">
                        <img src="https://picsum.photos/id/1015/600/400" alt="山间湖泊的风景照，远处有雪山倒映在湖中">
                    </div>
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">分享我在阿尔卑斯山徒步的难忘经历</a></h2>
                        <p class="topic-excerpt">上周在阿尔卑斯山完成了为期5天的徒步旅行，沿途的风景美不胜收，尤其是清晨的湖面倒影，简直让人窒息...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1012/28/28" alt="旅行者小明的头像" class="author-avatar">
                                <span class="author-name">旅行者小明</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 2.4k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 86</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn liked"><i class="fas fa-heart"></i> 342</button>
                                <button class="action-btn"><i class="far fa-bookmark"></i> 收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
                
                <!-- 带多张图片的话题卡片 -->
                <article class="topic-card topic-card-multiple-images">
                    <div class="topic-images">
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/292/600/400" alt="意大利面配番茄肉酱">
                        </div>
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/431/600/400" alt="提拉米苏甜点">
                        </div>
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/365/600/400" alt="意大利披萨">
                            <div class="image-count-overlay">+5</div>
                        </div>
                    </div>
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">我的意大利美食之旅，从北到南的味蕾体验</a></h2>
                        <p class="topic-excerpt">这次意大利之行，我从米兰吃到西西里，每一个地区都有其独特的美食文化，分享我的发现和推荐...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1027/28/28" alt="美食家莉莉的头像" class="author-avatar">
                                <span class="author-name">美食家莉莉</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 5.1k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 156</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn"><i class="far fa-heart"></i> 789</button>
                                <button class="action-btn bookmarked"><i class="fas fa-bookmark"></i> 已收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
                
                <!-- 无图片的话题卡片 -->
                <article class="topic-card topic-card-no-image">
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">大家是如何平衡工作和生活的？分享你的经验</a></h2>
                        <p class="topic-excerpt">最近感觉工作压力很大，经常加班，几乎没有自己的时间。想问问大家是如何在忙碌的工作中找到生活的平衡点的？...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1025/28/28" alt="职场新人小张的头像" class="author-avatar">
                                <span class="author-name">职场新人小张</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 3.8k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 245</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn"><i class="far fa-heart"></i> 412</button>
                                <button class="action-btn"><i class="far fa-bookmark"></i> 收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
                
                <!-- 带单张图片的话题卡片 -->
                <article class="topic-card topic-card-single-image">
                    <div class="topic-image">
                        <img src="https://picsum.photos/id/1059/600/400" alt="最新款智能手机的展示图">
                    </div>
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">新一代智能手机评测：性能与续航的全面提升</a></h2>
                        <p class="topic-excerpt">拿到这款新手机已经使用了两周，从日常使用到游戏性能，再到电池续航，给大家带来最真实的使用体验...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1066/28/28" alt="科技评测师老王的头像" class="author-avatar">
                                <span class="author-name">科技评测师老王</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 6.3k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 289</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn"><i class="far fa-heart"></i> 578</button>
                                <button class="action-btn"><i class="far fa-bookmark"></i> 收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
                
                <!-- 带多张图片的话题卡片 -->
                <article class="topic-card topic-card-multiple-images">
                    <div class="topic-images">
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/1082/600/400" alt="瑜伽冥想姿势">
                        </div>
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/1060/600/400" alt="健康沙拉">
                        </div>
                        <div class="topic-image">
                            <img src="https://picsum.photos/id/1058/600/400" alt="睡眠环境">
                        </div>
                    </div>
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">30天健康挑战：我的身体和精神变化</a></h2>
                        <p class="topic-excerpt">坚持了30天的健康生活计划，包括合理饮食、规律作息和适度运动，分享我的变化和经验...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1062/28/28" alt="健康顾问小雪的头像" class="author-avatar">
                                <span class="author-name">健康顾问小雪</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 4.2k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 178</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn liked"><i class="fas fa-heart"></i> 632</button>
                                <button class="action-btn"><i class="far fa-bookmark"></i> 收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
                
                <!-- 无图片的话题卡片 -->
                <article class="topic-card topic-card-no-image">
                    <div class="topic-content">
                        <h2><a href="#" class="topic-title">你认为人工智能会在未来10年改变哪些行业？</a></h2>
                        <p class="topic-excerpt">随着ChatGPT等AI工具的兴起，人工智能正在快速发展。大家觉得未来10年，哪些行业会受到AI的最大影响？哪些职业可能会被取代？...</p>
                        <div class="topic-meta">
                            <div class="topic-author">
                                <img src="https://picsum.photos/id/1077/28/28" alt="未来学家大卫的头像" class="author-avatar">
                                <span class="author-name">未来学家大卫</span>
                            </div>
                            <div class="topic-stats">
                                <span class="stat-item"><i class="far fa-eye"></i> 9.5k</span>
                                <span class="stat-item"><i class="far fa-comment"></i> 467</span>
                            </div>
                            <div class="topic-actions">
                                <button class="action-btn"><i class="far fa-heart"></i> 892</button>
                                <button class="action-btn bookmarked"><i class="fas fa-bookmark"></i> 已收藏</button>
                            </div>
                        </div>
                    </div>
                </article>
            </div>
            
            <!-- 分页 -->
            <div class="pagination-container">
                <div class="pagination">
                    <button class="page-btn disabled">
                        <i class="fas fa-chevron-left"></i>
                    </button>
                    <button class="page-btn active">1</button>
                    <button class="page-btn">2</button>
                    <button class="page-btn">3</button>
                    <button class="page-btn">4</button>
                    <button class="page-btn">5</button>
                    <button class="page-btn">...</button>
                    <button class="page-btn">25</button>
                    <button class="page-btn">
                        <i class="fas fa-chevron-right"></i>
                    </button>
                </div>
            </div>
        </div>
    </div>
    
    <!-- Bootstrap 5 JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 高级筛选切换
        const advancedToggle = document.getElementById('advancedToggle');
        const advancedFilters = document.getElementById('advancedFilters');
        
        advancedToggle.addEventListener('click', () => {
            advancedFilters.classList.toggle('show');
            const icon = advancedToggle.querySelector('i');
            if (advancedFilters.classList.contains('show')) {
                icon.classList.remove('fa-chevron-down');
                icon.classList.add('fa-chevron-up');
                advancedToggle.querySelector('span').textContent = '收起筛选';
            } else {
                icon.classList.remove('fa-chevron-up');
                icon.classList.add('fa-chevron-down');
                advancedToggle.querySelector('span').textContent = '高级筛选';
            }
        });
        
        // 布局切换功能
        const gridLayoutBtn = document.getElementById('gridLayoutBtn');
        const listLayoutBtn = document.getElementById('listLayoutBtn');
        const compactLayoutBtn = document.getElementById('compactLayoutBtn');
        const topicsContainer = document.getElementById('topicsContainer');
        
        // 布局按钮点击事件
        gridLayoutBtn.addEventListener('click', () => {
            setActiveLayoutBtn(gridLayoutBtn);
            topicsContainer.className = 'topics-container grid-layout';
        });
        
        listLayoutBtn.addEventListener('click', () => {
            setActiveLayoutBtn(listLayoutBtn);
            topicsContainer.className = 'topics-container list-layout';
        });
        
        compactLayoutBtn.addEventListener('click', () => {
            setActiveLayoutBtn(compactLayoutBtn);
            topicsContainer.className = 'topics-container compact-layout';
        });
        
        // 设置活跃的布局按钮
        function setActiveLayoutBtn(btn) {
            [gridLayoutBtn, listLayoutBtn, compactLayoutBtn].forEach(b => {
                b.classList.remove('active');
            });
            btn.classList.add('active');
        }
        
        // 筛选标签切换
        const filterTags = document.querySelectorAll('.filter-tag');
        filterTags.forEach(tag => {
            tag.addEventListener('click', function() {
                // 找到同一组中的其他标签并移除active类
                const parent = this.parentElement;
                parent.querySelectorAll('.filter-tag').forEach(t => {
                    t.classList.remove('active');
                });
                // 为当前标签添加active类
                this.classList.add('active');
            });
        });
        
        // 移除活跃筛选条件
        const removeFilterBtns = document.querySelectorAll('.remove-filter');
        removeFilterBtns.forEach(btn => {
            btn.addEventListener('click', function() {
                this.closest('.active-filter-tag').remove();
                // 这里可以添加重置对应筛选条件的逻辑
            });
        });
        
        // 重置筛选按钮
        const resetBtn = document.querySelector('.reset-btn');
        resetBtn.addEventListener('click', () => {
            // 重置所有筛选标签
            filterTags.forEach(tag => {
                tag.classList.remove('active');
                // 激活"全部"或"不限"选项
                if (tag.textContent === '全部' || tag.textContent === '不限' || tag.textContent === '全部时间') {
                    tag.classList.add('active');
                }
            });
            
            // 重置复选框
            document.querySelectorAll('.filter-checkbox').forEach(checkbox => {
                checkbox.checked = true;
            });
            
            // 重置日期输入
            document.querySelectorAll('.date-input').forEach(input => {
                input.value = '';
            });
            
            // 重置排序选择
            document.querySelector('.filter-select').value = 'recommend';
            
            // 清空活跃筛选标签
            document.querySelector('.active-filters').innerHTML = `
                <div class="active-filter-tag">
                    <span>话题分类: 全部</span>
                    <button class="remove-filter"><i class="fas fa-times"></i></button>
                </div>
                <div class="active-filter-tag">
                    <span>发布时间: 全部时间</span>
                    <button class="remove-filter"><i class="fas fa-times"></i></button>
                </div>
            `;
            
            // 重新绑定移除筛选按钮事件
            document.querySelectorAll('.remove-filter').forEach(btn => {
                btn.addEventListener('click', function() {
                    this.closest('.active-filter-tag').remove();
                });
            });
        });
        
        // 应用筛选按钮
        const applyBtn = document.querySelector('.apply-btn');
        applyBtn.addEventListener('click', function() {
            // 模拟加载状态
            this.innerHTML = '<i class="fas fa-spinner fa-spin me-2"></i>筛选中...';
            
            // 模拟筛选延迟
            setTimeout(() => {
                this.innerHTML = '<i class="fas fa-filter"></i><span>应用筛选</span>';
                // 这里可以添加实际应用筛选条件的逻辑
            }, 1000);
        });
        
        // 点赞功能
        const likeButtons = document.querySelectorAll('.action-btn .fa-heart');
        likeButtons.forEach(button => {
            button.parentElement.addEventListener('click', function() {
                this.classList.toggle('liked');
                
                const icon = this.querySelector('i');
                if (this.classList.contains('liked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                }
                
                // 更新点赞数
                const countText = this.childNodes[2].textContent.trim();
                let count = parseInt(countText);
                
                if (this.classList.contains('liked')) {
                    count += 1;
                } else {
                    count -= 1;
                }
                
                this.childNodes[2].textContent = ` ${count}`;
            });
        });
        
        // 收藏功能
        const bookmarkButtons = document.querySelectorAll('.action-btn .fa-bookmark');
        bookmarkButtons.forEach(button => {
            button.parentElement.addEventListener('click', function() {
                this.classList.toggle('bookmarked');
                
                const icon = this.querySelector('i');
                if (this.classList.contains('bookmarked')) {
                    icon.classList.remove('far');
                    icon.classList.add('fas');
                    this.childNodes[2].textContent = ' 已收藏';
                } else {
                    icon.classList.remove('fas');
                    icon.classList.add('far');
                    this.childNodes[2].textContent = ' 收藏';
                }
            });
        });
        
        // 分页功能
        const pageBtns = document.querySelectorAll('.page-btn:not(.disabled)');
        pageBtns.forEach(btn => {
            if (!btn.querySelector('i')) { // 排除箭头按钮
                btn.addEventListener('click', function() {
                    pageBtns.forEach(b => b.classList.remove('active'));
                    this.classList.add('active');
                    // 这里可以添加加载对应页码内容的逻辑
                });
            }
        });
        
        // 上一页/下一页按钮
        const prevPageBtn = document.querySelector('.pagination .fa-chevron-left').parentElement;
        const nextPageBtn = document.querySelector('.pagination .fa-chevron-right').parentElement;
        
        prevPageBtn.addEventListener('click', function() {
            if (!this.classList.contains('disabled')) {
                const activeBtn = document.querySelector('.page-btn.active');
                const prevBtn = activeBtn.previousElementSibling;
                if (prevBtn && !prevBtn.querySelector('i')) {
                    activeBtn.classList.remove('active');
                    prevBtn.classList.add('active');
                }
            }
        });
        
        nextPageBtn.addEventListener('click', function() {
            if (!this.classList.contains('disabled')) {
                const activeBtn = document.querySelector('.page-btn.active');
                const nextBtn = activeBtn.nextElementSibling;
                if (nextBtn && !nextBtn.querySelector('i') && nextBtn.textContent !== '...') {
                    activeBtn.classList.remove('active');
                    nextBtn.classList.add('active');
                }
            }
        });
    </script>
</body>
</html>
    
